//
//  XBAttributeLabel.h
//  AttributedStringTest
//
//  Created by xp on 17/4/18.
//  Copyright © 2017年 sun huayu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreText/CoreText.h>
#import <QuartzCore/QuartzCore.h>
@interface XBAttributeLabel : UILabel
// 设置某段字的颜色
- (void)setAttributeColor:(UIColor *)color fromIndex:(NSInteger)location length:(NSInteger)length;

// 设置某段字的字体
- (void)setAttributeFont:(UIFont *)font fromIndex:(NSInteger)location length:(NSInteger)length;
@end
